<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-overlay-prescribe" data-options="border:false;width:100%">
  			
    <form class="condition-form">
		<table> 	
			<tr>
				<th>统计时间</th>
				<td><input name="monitor_year_month" id="monitor_year_month" type="text"  class="easyui-datebox easyui-validatebox"  style="width:150px" 
					data-options="formatter: function(date){
						var y = date.getFullYear();
						var m = date.getMonth()+1;						
						return y+'-'+m;
					},
					parser:function(s){
						var t = Date.parse(s);
						if (!isNaN(t)){
							return new Date(t);
						} else {
							return new Date();
						}
					},
					value:new Date()
					
				"/></td>
				
				<th>科室名称</th>
				<td><input name="dept_name_like" id="dept_name_like" type="text"  class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
				<th>药品种类</th>
				<td><input name="drug_type_standard" id="drug_type_standard" type="text" value="5" class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
				<th>处方金额</th>
				<td><input name="drug_price_standard" id="drug_price_standard" type="text" value="500" class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
				<th>用药周期</th>
				<td><input name="drug_date_standard" id="drug_date_standard" type="text" value="7" class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
							
				
				<th></th>
				<td><a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn" iconCls="icon-search">执行查询</a></td>
			</tr>				
		</table>
	</form>
	
    
	<table class="easyui-datagrid dg-list"  
		data-options="rownumbers:true,
		animate: true,							
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		width : 'auto'">
		
		<thead>						
			<tr>				
				<th field="dept_name" width="80" halign="center" align="center">科室名称</th>				
				<th field="outpatient_num" width="60" align="center">就诊人次</th>
				<th field="drug_type_overlay" width="60" align="center" data-options="
					styler: function(value,row,index){
						
						if (value && value >0){
							
							return 'color:red;';							
							
						}else{
							return 'color:green;';
						}
					}">药品种类超标</th>
				<th field="drug_date_overlay" width="60" align="center" data-options="
					styler: function(value,row,index){
						
						if (value && value >0){
							
							return 'color:red;';							
							
						}else{
							return 'color:green;';
						}
					}">用药周期超标</th>
				<th field="drug_price_overlay" width="60" align="center" data-options="
					styler: function(value,row,index){
						
						if (value && value >0){
							
							return 'color:red;';							
							
						}else{
							return 'color:green;';
						}
					}">处方限额超标</th>																	
			</tr>		
                          
		</thead>		
	</table>
</div> 
<script>
requirejs(['listPageModule','domReady!'],function(dept,doc){
	dept.init({doc:doc,
				rootId:'panel-overlay-prescribe',				
				subSystemCode:'medical',
				moduleCode:'overlayPrescribe',
				querylistUrl:'getDeptListDomain',
				pagination:false});
});	

</script>

